<center>
  <h1>Mis aprovaciones</h1><br/>

<% if  @dates.size>0
   @dates.sort!{|t1,t2|t2 <=> t1}
   @dates.each{ |thisDate|
  %>
       <%= link_to  thisDate[0].to_s  + ' ( <b> ' + thisDate[1].to_s + '</b> )'  , :controller=>'accepted', :action=> 'edit' , :myDate=>thisDate[0].to_s,:id=> thisDate[2].to_i.to_s %> | <%= thisDate[3] %><br/>
   <%}
   else
   %>   <center><b>No hay hojas de tiempo a aprobar por el momento</b></center>
   <%end%>

   <script>
  try{
  <%  if current_user.role.id==3 %>
    Effect.toggle('subTasks','slide',{duration:0.0});
  <%  end %>
    Effect.toggle('subUsers','slide',{duration:0.0});
    Effect.toggle('subTasks','slide',{duration:0.0});
    alert(getElementById('id'));
  }catch(e){

  }
</script>
</center>